﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CommonLibrary
{
    /// <summary>
    /// The sole use of this interface is to enforce dictionnary repositories content constraints.
    /// </summary>
    public interface IResourceDictionnary
    {
        /// <summary>
        /// Returns content as an object.
        /// </summary>
        /// <param name="Key"></param>
        /// <returns></returns>
        object RawGet(string Key);
        /// <summary>
        /// Returns the type of content of the dictionnary.
        /// </summary>
        /// <returns></returns>
        Type ContentTypeGet();
        /// <summary>
        /// Invalidates the cached value of a key.
        /// </summary>
        /// <param name="Key"></param>
        void InvalidateKey(string Key);
        /// <summary>
        /// Invalidates the cache value of all keys.
        /// </summary>
        void InvalidateAll();
    }
}
